<template>
  <div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>商品管理</el-breadcrumb-item>
      <el-breadcrumb-item>添加商品</el-breadcrumb-item>
    </el-breadcrumb>

    <el-card class="box-card">
      <el-alert title="添加商品信息" type="info" center> </el-alert>
      <!-- 横向步骤条 -->
      <el-steps :active="activeIndex - 0" finish-status="success" align-center :space="600">
        <el-step title="基本信息"></el-step>
        <el-step title="商品参数"></el-step>
        <el-step title="商品属性"></el-step>
        <el-step title="商品图片"></el-step>
        <el-step title="商品内容"></el-step>
        <el-step title="完成"></el-step>
      </el-steps>
      <!--纵向步骤条 -->
      <el-tabs tab-position="left" style="height: 200px" :value="activeIndex" @tab-click="handle">
        <el-tab-pane label="基本信息">
            
        </el-tab-pane>
        <el-tab-pane label="商品参数">商品参数</el-tab-pane>
        <el-tab-pane label="商品属性">商品属性</el-tab-pane>
        <el-tab-pane label="商品图片">商品图片</el-tab-pane>
        <el-tab-pane label="商品内容">商品内容</el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeIndex: '2',
    }
  },
  created() {},
  methods: {
    handle(role) {
      console.log(role.index)
      this.activeIndex = role.index
    },
  },
}
</script>

<style scoped lang="less">
.el-steps {
  margin-left: 30px;
}
</style>
